-- GENERATED SPELL FOR [Cult Plaguebringer] --


function spell0_24957(pUnit, Event) --@Inject Plague,n/a--
pUnit:FullCastSpellOnTarget(50356,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24957', 8000, 1)
end

function Sorts_24957(pUnit, Event)
local choix_sorts_24957 = math.random(0, 0)
if choix_sorts_24957 == 0 then
pUnit:RegisterEvent('spell0_24957', 1, 1)
end
end

function mob24957_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24957', math.random(1500, 3000), 1)
end

function mob24957_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24957_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24957_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24957, 1, 'mob24957_Action')
RegisterUnitEvent(24957, 2, 'mob24957_Leave')
RegisterUnitEvent(24957, 3, 'mob24957_Kill')
RegisterUnitEvent(24957, 4, 'mob24957_Die')
